<!--
 * @Descripttion: HN-SaaS管理系统
 * @version: 1.0.0
 * @Author: 侯建军
 * @Date: 2020-09-08 11:01:49
 * @LastEditors: 侯建军
 * @LastEditTime: 2020-09-09 15:32:30
-->
<template>
  <!-- 挂号信息 -->
  <div>
    <el-dialog :visible.sync="dialogVisible" :before-close="handleClose">
      <el-form class="registerInfo" ref="form" :model="register" label-width="80px">
        <el-form-item label="看诊日期">
          <el-date-picker
            type="date"
            placeholder="选择日期"
            v-model="register.date1"
            style="width: 20%;"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="初始号额">
          <el-col :span="10">{{register.initNumber}}</el-col>
          <el-col class="line" :span="4">已用号额</el-col>
          <el-col :span="10">{{register.useNumber}}</el-col>
        </el-form-item>
        <el-form-item label="结算类别">
          <el-col :span="11">
            <el-select v-model="register.region" placeholder="请选择结算类别">
              <el-option label="自费" value="0"></el-option>
              <el-option label="公费" value="1"></el-option>
            </el-select>
          </el-col>
          <el-col class="line" :span="2">午别</el-col>
          <el-col :span="11">
            <el-select v-model="register.region" placeholder="请选择午别">
              <el-option label="上午" value="0"></el-option>
              <el-option label="下午" value="1"></el-option>
            </el-select>
          </el-col>
        </el-form-item>
        <el-form-item label="挂号科室">
          <el-col :span="11">
            <el-select v-model="register.region" placeholder="请选择挂号科室">
              <el-option label="内科" value="0"></el-option>
              <el-option label="外科" value="1"></el-option>
            </el-select>
          </el-col>
          <el-col class="line" :span="2">号别</el-col>
          <el-col :span="11">
            <el-select v-model="register.region" placeholder="请选择号别">
              <el-option label="普通号" value="0"></el-option>
              <el-option label="专家号" value="1"></el-option>
            </el-select>
          </el-col>
        </el-form-item>
        <el-form-item label="看诊医">
          <el-col :span="10">
            <el-select v-model="register.region" placeholder="请选择看诊医">
              <el-option label="张医生" value="0"></el-option>
              <el-option label="李医生" value="1"></el-option>
            </el-select>
          </el-col>
          <el-col class="line" :span="4">收费方式</el-col>
          <el-col :span="10">
            <el-select v-model="register.region" placeholder="请选择收费方式">
              <el-option label="现金" value="0"></el-option>
              <el-option label="医保" value="1"></el-option>
            </el-select>
          </el-col>
        </el-form-item>
        <el-form-item label="病历本">
          <el-checkbox label="是/否领取" name="type"></el-checkbox>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onRegister">挂号</el-button>
          <el-button>取消</el-button>
        </el-form-item>
      </el-form>
    </el-dialog>
  </div>
</template>

<script>
import {insert} from "@/api/register.js";

export default {
  props: ["dialogVisible"],
  data() {
    return {
      register: { initNumber: 0, useNumber: 0 },
    };
  },
  methods: {
    handleClose() {
      this.$emit("close", this.dialogVisible);
    },
    onRegister() {
      
    },
  },
};
</script>

<style lang="scss" scoped>
.registerInfo {
  text-align: left;
}
</style>